Hi, I have been trying to figure out what is wrong in the code for 5 days now. But, with no success. this code works perfect when executing from Tools->edit DXl option. But when i try the same task using the batch file, it gives these errors.The errors are in line obj."attrname"
I keep getting the errors: 1."false arguments for . " 2.false arguments for = 3.false arguments for do Gsquare - Wed Dec 14 04:10:54 EST 2016 |
Re: Code error-Batch file export You need to declare your "obj" variable. It is declared automatically inside the GUI, but in batch mode this is different. Add a declaration: Object obj; or better rename the obj variable to "o" or something. Regards, Mathias |
Re: Code error-Batch file export Mathias Mamsch - Thu Dec 15 04:33:17 EST 2016 You need to declare your "obj" variable. It is declared automatically inside the GUI, but in batch mode this is different. Add a declaration: Object obj; or better rename the obj variable to "o" or something. Regards, Mathias Sounds like autodeclare should be switched off for batch development: http://www.smartdxl.com/content/?p=467 |
Re: Code error-Batch file export Mathias Mamsch - Thu Dec 15 04:33:17 EST 2016 You need to declare your "obj" variable. It is declared automatically inside the GUI, but in batch mode this is different. Add a declaration: Object obj; or better rename the obj variable to "o" or something. Regards, Mathias Thank you so much Mathias. Worked perfectly!!don't know how i missed that. |
Re: Code error-Batch file export Antonio__Norkus - Thu Dec 15 05:00:51 EST 2016 Sounds like autodeclare should be switched off for batch development: http://www.smartdxl.com/content/?p=467 Thanks. Yes maybe i can try that too.. |